package com.boot.jedis;

import com.boot.jedis.config.JedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: lkz
 * @Title: TestController
 * @Description: TODO
 * @Date: 2023/9/14 14:57
 */
@RestController
public class TestController {


    @Autowired
    private JedisUtil jedisUtil;

    @GetMapping("test")
    public void test(){
        String st="测试";
        jedisUtil.set("k1",st);
        String o = (String)jedisUtil.get("k1");
        System.out.println(o);
    }
}
